import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Treatment from "@/components/Treatment"
import NotFound from '@/components/Error/404'
import login from "../components/login";
import FinishPage from "../components/FinishPage";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/hello',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/login',
      name: 'Login',
      component: login
    },
    {
      path:'/treatment',
      name:'treatment',
      // redirect:'/treatment/login',
      component:Treatment,
      children:[
        {
          path:'/cover',
          component: () =>import("../components/MainFrame/cover")
        },
        {
          path:'/operating',
          component: () =>import("../components/MainFrame/operating")
        },
      ]
    },
    {
      path: '/finish',
      name: 'FinishPage',
      component: FinishPage
    },
    {
      path: '*',
      name: '404 Not Found',
      component: NotFound
    }
  ]
})
